package com.bjdd.jdy.ui.userCenter;

import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;
import com.bjdd.jdy.entity.InfoBean;
import com.bjdd.jdy.entity.User;

import java.io.File;

import okhttp3.RequestBody;
import rx.Observable;

/**
 * Created by Administrator on 2017/4/20.
 */

public interface UserCenterContract {
    interface Model extends BaseModel{
        Observable<BaseResult<InfoBean>> getInfo(String token,String carrierId);
        Observable<BaseResult<User>> headPhoto(String token, String carrierId, RequestBody img);
    }
    interface View extends BaseView{
        void infoSuccess(InfoBean infoBean);
        void headPhotoSuccess();
    }
    public abstract class Presenter extends BasePresenter<UserCenterContract.Model,UserCenterContract.View>{
        abstract void getInfo();
        abstract void headPhoto(RequestBody img);
        abstract void CompressImg(File file);
    }
}
